home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSTTTTTTTTYYYY((((1111)))) SSSSTTTTTTTTYYYY((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- stty - set the options for a terminal
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ssssttttttttyyyy [ ----aaaa ] [ ----gggg ] [ options ]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _s_t_t_y sets certain terminal I/O options for the device that is the current
- standard input; without arguments, it reports the settings of certain
- options.
-
- In this report, if a character is preceded by a caret (^), then the value
- of that option is the corresponding CTRL character (e.g., ``^^^^HHHH'' is
- CCCCTTTTRRRRLLLL----HHHH ;;;; in this case, recall that CCCCTTTTRRRRLLLL----HHHH is the same as the
- ``backspace'' key.) The sequence ``^^^^'''''' means that an option has a null
- value. For example, normally ssssttttttttyyyy ----aaaa will report that the value of sssswwwwttttcccchhhh
- is ``^^^^''''''; however, if _c_s_h(1) is used, sssswwwwttttcccchhhh will have the value ``^^^^ZZZZ''.
-
- ----aaaa reports all of the option settings;
-
- ----gggg reports current settings in a form that can be used as an argument
- to another _s_t_t_y command; this does not include the rrrroooowwwwssss and ccccoooolllluuuummmmnnnnssss
- values.
-
- Options in the last group are implemented using options in the previous
- groups. Note that many combinations of options make no sense, but no
- sanity checking is performed. The options are selected from the
- following:
-
- CCCCoooonnnnttttrrrroooollll MMMMooooddddeeeessss
- ppppaaaarrrreeeennnnbbbb (----ppppaaaarrrreeeennnnbbbb)
- enable (disable) parity generation and detection.
- ppppaaaarrrroooodddddddd (----ppppaaaarrrroooodddddddd)
- select odd (even) parity.
- ccccssss5555 ccccssss6666 ccccssss7777 ccccssss8888
- select character size (see _t_e_r_m_i_o(7)).
- 0000 hang up phone line immediately.
- 111111110000 333300000000 666600000000 1111222200000000 1111888800000000 2222444400000000 4444888800000000 9999666600000000 11119999222200000000 33338888444400000000 55557777666600000000 111111115555222200000000 eeeettttcccc....
- Set terminal input and output baud rate to the number given, if
- possible. (All speeds are not supported by all hardware
- interfaces.)
- iiiissssppppeeeeeeeedddd (((( <<<<ssssppppeeeeeeeedddd>>>> ))))
- where ssssppppeeeeeeeedddd is a baud rate as defined above, set only the input
- baud rate to the given value, if possible (some hardware may
- require the input and output baud rate to be the same). If the
- speed specified is 0, set the input speed to match the output
- speed.
- oooossssppppeeeeeeeedddd (((( <<<<ssssppppeeeeeeeedddd>>>> ))))
- where ssssppppeeeeeeeedddd is a baud rate as defined above, set only the
- output baud rate to the given value, if possible (some hardware
- may require the input and output baud rate to be the same). If
- the speed specified is 0, a hangup is generated.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- SSSSTTTTTTTTYYYY((((1111)))) SSSSTTTTTTTTYYYY((((1111))))
-
-
-
- hhhhuuuuppppccccllll (----hhhhuuuuppppccccllll)
- hang up (do not hang up) serial-line connections on last close.
- hhhhuuuupppp (----hhhhuuuupppp)
- same as hhhhuuuuppppccccllll (----hhhhuuuuppppccccllll).
- ccccssssttttooooppppbbbb (----ccccssssttttooooppppbbbb)
- use two (one) stop bits per character.
- ccccrrrreeeeaaaadddd (----ccccrrrreeeeaaaadddd)
- enable (disable) the receiver.
- ccccllllooooccccaaaallll (----ccccllllooooccccaaaallll)
- assume a line without (with) modem control.
- ccccnnnneeeewwww____rrrrttttssssccccttttssss (----ccccnnnneeeewwww____rrrrttttssssccccttttssss)
- enable (disable) RTS/CTS flow control.
- lllloooobbbbllllkkkk (----lllloooobbbbllllkkkk)
- block (do not block) output from a background job.
- ttttoooossssttttoooopppp (----ttttoooossssttttoooopppp)
- block (do not block) output from a background job (same as
- lllloooobbbbllllkkkk).
-
- IIIInnnnppppuuuutttt MMMMooooddddeeeessss
- iiiiggggnnnnbbbbrrrrkkkk (----iiiiggggnnnnbbbbrrrrkkkk)
- ignore (do not ignore) break on input.
- bbbbrrrrkkkkiiiinnnntttt (----bbbbrrrrkkkkiiiinnnntttt)
- signal (do not signal) INTR on break.
- iiiiggggnnnnppppaaaarrrr (----iiiiggggnnnnppppaaaarrrr)
- ignore (do not ignore) parity errors.
- ppppaaaarrrrmmmmrrrrkkkk (----ppppaaaarrrrmmmmrrrrkkkk)
- mark (do not mark) parity errors (see _t_e_r_m_i_o(7)).
- iiiinnnnppppcccckkkk (----iiiinnnnppppcccckkkk)
- enable (disable) input parity checking.
- iiiissssttttrrrriiiipppp (----iiiissssttttrrrriiiipppp)
- strip (do not strip) input characters to seven bits.
- iiiinnnnllllccccrrrr (----iiiinnnnllllccccrrrr)
- map (do not map) NL to CR on input.
- iiiiggggnnnnccccrrrr (----iiiiggggnnnnccccrrrr)
- ignore (do not ignore) CR on input.
- iiiiccccrrrrnnnnllll (----iiiiccccrrrrnnnnllll)
- map (do not map) CR to NL on input.
- iiiiuuuuccccllllcccc (----iiiiuuuuccccllllcccc)
- map (do not map) upper-case alphabetics to lower case on input.
- iiiixxxxoooonnnn (----iiiixxxxoooonnnn)
- enable (disable) START/STOP output control. Output is stopped
- by sending the stop character (default is CTRL-S) and started
- by sending the start character (default is CTRL-Q).
- iiiixxxxaaaannnnyyyy (----iiiixxxxaaaannnnyyyy)
- allow any character (only the start character like CTRL-Q) to
- restart output.
- ddddeeeeccccccccttttllllqqqq (----ddddeeeeccccccccttttllllqqqq)
- allow only the start character like CTRL-Q (allow any
- character) to restart output. An alias for ----iiiixxxxaaaannnnyyyy.
- iiiixxxxooooffffffff (----iiiixxxxooooffffffff)
- request that the system send (not send) START/STOP characters
- when the input queue is nearly empty/full.
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- SSSSTTTTTTTTYYYY((((1111)))) SSSSTTTTTTTTYYYY((((1111))))
-
-
-
- iiiimmmmaaaaxxxxbbbbeeeellll (----iiiimmmmaaaaxxxxbbbbeeeellll)
- echo BBBBEEEELLLL if the input stream overflows.
-
- OOOOuuuuttttppppuuuutttt MMMMooooddddeeeessss
- ooooppppoooosssstttt (----ooooppppoooosssstttt)
- post-process output (do not post-process output; ignore all
- other output modes).
- oooollllccccuuuucccc (----oooollllccccuuuucccc)
- map (do not map) lower-case alphabetics to upper case on
- output.
- oooonnnnllllccccrrrr (----oooonnnnllllccccrrrr)
- map (do not map) NL to CR-NL on output.
- ooooccccrrrrnnnnllll (----ooooccccrrrrnnnnllll)
- map (do not map) CR to NL on output.
- oooonnnnooooccccrrrr (----oooonnnnooooccccrrrr)
- do not (do) output CRs at column zero.
- oooonnnnllllrrrreeeetttt (----oooonnnnllllrrrreeeetttt)
- on the terminal NL performs (does not perform) the CR function.
- ooooffffiiiillllllll (----ooooffffiiiillllllll)
- use fill characters (use timing) for delays.
- ooooffffddddeeeellll (----ooooffffddddeeeellll)
- fill characters are DELs (NULs).
- ccccrrrr0000 ccccrrrr1111 ccccrrrr2222 ccccrrrr3333
- select style of delay for carriage returns (see _t_e_r_m_i_o(7)).
- nnnnllll0000 nnnnllll1111 select style of delay for line-feeds (see _t_e_r_m_i_o(7)).
- ttttaaaabbbb0000 ttttaaaabbbb1111 ttttaaaabbbb2222 ttttaaaabbbb3333
- select style of delay for horizontal tabs (see _t_e_r_m_i_o(7)).
- bbbbssss0000 bbbbssss1111 select style of delay for backspaces (see _t_e_r_m_i_o(7)).
- ffffffff0000 ffffffff1111 select style of delay for form-feeds (see _t_e_r_m_i_o(7)).
- vvvvtttt0000 vvvvtttt1111 select style of delay for vertical tabs (see _t_e_r_m_i_o(7)).
-
- LLLLooooccccaaaallll MMMMooooddddeeeessss
- iiiissssiiiigggg (----iiiissssiiiigggg)
- enable (disable) the checking of characters against the special
- control characters INTR, QUIT and SWTCH.
- iiiiccccaaaannnnoooonnnn (----iiiiccccaaaannnnoooonnnn)
- enable (disable) canonical input (ERASE and KILL processing).
- xxxxccccaaaasssseeee (----xxxxccccaaaasssseeee)
- canonical (unprocessed) upper/lower-case presentation.
- eeeecccchhhhoooo (----eeeecccchhhhoooo)
- echo back (do not echo back) every character typed.
- eeeecccchhhhooooeeee (----eeeecccchhhhooooeeee)
- echo (do not echo) ERASE character as a backspace-space-
- backspace string. Note: this mode will erase the ERASEed
- character on many CRT terminals; however, it does _n_o_t keep
- track of column position and, as a result, may be confusing on
- escaped characters, tabs, and backspaces.
- eeeecccchhhhooookkkk (----eeeecccchhhhooookkkk)
- echo (do not echo) NL after KILL character.
- llllffffkkkkcccc (----llllffffkkkkcccc)
- the same as eeeecccchhhhooookkkk (----eeeecccchhhhooookkkk); obsolete.
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- SSSSTTTTTTTTYYYY((((1111)))) SSSSTTTTTTTTYYYY((((1111))))
-
-
-
- eeeecccchhhhooookkkkeeee (----eeeecccchhhhooookkkkeeee)
- echo (do not echo) the KILL character by erasing each character
- on the line from the screen (using the mechanism selected by
- eeeecccchhhhooooeeee and eeeecccchhhhoooopppprrrrtttt).
- eeeecccchhhhooooccccttttllll (----eeeecccchhhhooooccccttttllll)
- Echo (do not echo) control characters as ^char, delete as ^?.
- eeeecccchhhhoooopppprrrrtttt (----eeeecccchhhhoooopppprrrrtttt)
- Echo (do not echo) erase character as character erased.
- eeeecccchhhhoooonnnnllll (----eeeecccchhhhoooonnnnllll)
- echo (do not echo) NL.
- nnnnooooffffllllsssshhhh (----nnnnooooffffllllsssshhhh)
- disable (enable) flush after INTR, QUIT or SWTCH.
- fffflllluuuusssshhhhoooo (----fffflllluuuusssshhhhoooo)
- If set, data written to the terminal is discarded. This bit is
- automatically set when the flush/discard control-character (see
- below) is typed. This bit is automatically cleared by
- subsequent input from the terminal.
- ppppeeeennnnddddiiiinnnn (----ppppeeeennnnddddiiiinnnn)
- Retype pending input at next read or input char then
- automatically clear ppppeeeennnnddddiiiinnnn.
-
- CCCCoooonnnnttttrrrroooollll AAAAssssssssiiiiggggnnnnmmmmeeeennnnttttssss
- lllliiiinnnneeee _i set the line discipline to 0 (standard System V discipline) or
- 1 (4.3BSD _c_s_h(1) discipline).
- rrrroooowwwwssss _n set the number of rows for the terminal, used by some screen
- oriented programs. This is currently supported only on pty
- devices.
- ccccoooollllssss _n (or ccccoooolllluuuummmmnnnnssss) set the number of columns for the terminal, used
- by some screen oriented programs. This is currently supported
- only on pty devices.
- _c_o_n_t_r_o_l-_c_h_a_r_a_c_t_e_r _c
- set _c_o_n_t_r_o_l-_c_h_a_r_a_c_t_e_r to _c, where _c_o_n_t_r_o_l-_c_h_a_r_a_c_t_e_r is iiiinnnnttttrrrr,
- qqqquuuuiiiitttt, eeeerrrraaaasssseeee, eeeeooooffff, eeeeoooollll, oooolllldddd----sssswwwwttttcccchhhh, mmmmiiiinnnn, or ttttiiiimmmmeeee. (mmmmiiiinnnn and ttttiiiimmmmeeee
- are used with ----iiiiccccaaaannnnoooonnnn; see _t_e_r_m_i_o(7)). If line discipline is
- set to 1, the following _c_o_n_t_r_o_l-_c_h_a_r_a_c_t_e_r_s can be set: llllnnnneeeexxxxtttt,
- wwwweeeerrrraaaasssseeee, rrrrpppprrrrnnnntttt, fffflllluuuusssshhhh (a.k.a. ddddiiiissssccccaaaarrrrdddd), ssssttttoooopppp, If _c is preceded
- by an (escaped from the shell) caret (^^^^), then the value used
- is the corresponding CTRL character (e.g., ``^^^^DDDD'' is a CCCCTTTTRRRRLLLL----DDDD);
- ``^^^^????'' is interpreted as DEL and ``^^^^----'' or ``uuuunnnnddddeeeeffff'' is
- interpreted as undefined. In the case of mmmmiiiinnnn and ttttiiiimmmmeeee , the
- numerical argument is interpreted as a literal value rather
- than as an ascii character.
-
- CCCCoooommmmbbbbiiiinnnnaaaattttiiiioooonnnn MMMMooooddddeeeessss
- eeeevvvveeeennnnpppp or ppppaaaarrrriiiittttyyyy
- enable ppppaaaarrrreeeennnnbbbb and ccccssss7777.
- ooooddddddddpppp enable ppppaaaarrrreeeennnnbbbb, ccccssss7777, and ppppaaaarrrroooodddddddd.
- ----ppppaaaarrrriiiittttyyyy, ----eeeevvvveeeennnnpppp, or ----ooooddddddddpppp
- disable ppppaaaarrrreeeennnnbbbb, and set ccccssss8888.
- rrrraaaawwww (----rrrraaaawwww or ccccooooooookkkkeeeedddd)
- enable (disable) raw input and output (no ERASE, KILL, INTR,
- QUIT, SWTCH, EOT, or output post processing).
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-
-
-
- SSSSTTTTTTTTYYYY((((1111)))) SSSSTTTTTTTTYYYY((((1111))))
-
-
-
- iiiieeeexxxxtttteeeennnn (----iiiieeeexxxxtttteeeennnn)
- Enable (disable) any implementation-dependent special control
- characters not currently controlled by icanon, isig, ixon or
- ixoff.
- nnnnllll (----nnnnllll) set (unset) iiiiccccrrrrnnnnllll.... In addition ----nnnnllll unsets iiiinnnnllllccccrrrr, iiiiggggnnnnccccrrrr....
- llllccccaaaasssseeee (----llllccccaaaasssseeee)
- set (unset) xxxxccccaaaasssseeee, iiiiuuuuccccllllcccc, and oooollllccccuuuucccc.
- LLLLCCCCAAAASSSSEEEE (----LLLLCCCCAAAASSSSEEEE)
- same as llllccccaaaasssseeee (----llllccccaaaasssseeee).
- ttttaaaabbbbssss (----ttttaaaabbbbssss or ttttaaaabbbb3333)
- preserve (expand to spaces) tabs when printing.
- eeeekkkk reset ERASE and KILL characters back to normal ^^^^HHHH and ^^^^UUUU.
- ssssaaaannnneeee resets all modes to some reasonable values.
- ddddeeeecccc ERASE, KILL, and INTR characters set to ^^^^????, ^^^^UUUU, and ^^^^CCCC; eeeecccchhhhooooeeee
- and eeeecccchhhhooookkkk set; iiiixxxxaaaannnnyyyy unset.
- tttteeeerrrrmmmm set all modes suitable for the terminal type _t_e_r_m, where _t_e_r_m
- is one of ttttttttyyyy33333333, ttttttttyyyy33337777, vvvvtttt00005555, ttttnnnn333300000000, ttttiiii777700000000, or tttteeeekkkk.
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- tabs(1), ioctl(2), termio(7)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 5555
-
-
-
-